package com.ht.module.bus.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;


/**
 * <p>
 * 承运企业车辆信息表
 * </p>
 *
 * @author hejialun
 * @since 2024-07-29
 */

@TableName("t_vehicle_information")
@Data
@Accessors(chain = true)
public class TVehicleInformation{

	@ApiModelProperty("汽车牌照")
    @TableId
    @NotEmpty
    private String vehicleLicenseLate;

	@ApiModelProperty("承运企业编码")
    @NotEmpty
    private String companyCode;

	@ApiModelProperty("汽车品牌")
    @TableField("car_Brand")
    @NotEmpty
    private String carBrand;

	@ApiModelProperty("座位数")
    @NotNull
    private Integer seatingCapacity;

	@ApiModelProperty("驾驶员,多人用逗号隔开")
    @NotEmpty
    private String drives;

	@ApiModelProperty("行驶证照片")
    @NotEmpty
    private String drivingLicensePath;

	@ApiModelProperty("最新年审日期")
    @NotNull
    private LocalDate latestAnnualAuditDate;

    private String deptId;

	@ApiModelProperty("uuid")
    private String createUser;
    private LocalDateTime createDate;
    private String updateUser;
    private LocalDateTime updateDate;

    @ApiModelProperty("01有效,02无效")
    private String state;


    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer delFlag;

    @TableField(exist = false)
    @ApiModelProperty("承运企业名称")
    private String companyName;

    @TableField(exist = false)
    @ApiModelProperty("车辆运行路线实体集合")
    private List<TVehicleRouteResponsibility> routeEns;

    @ApiModelProperty("创建人姓名")
    @TableField(exist = false)
    private String createUserName;

}
